package com.guanjia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guanjia.entity.CreditInformation;
import com.guanjia.entity.Invest;
import com.guanjia.entity.UserInformation;
import com.guanjia.entity.vo.Image;
import com.guanjia.entity.vo.ImageCorr;
import com.guanjia.entity.vo.InvestInfoVo;
import com.guanjia.entity.vo.InvestVo;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface InvestMapper extends BaseMapper<Invest> {
    public  void saveInvest(Invest invest);

    List<InvestVo> selectByUserId(Integer id);

    CreditInformation findInfoById(Integer id);

    List<InvestInfoVo> findById(Integer id);

    Integer sumBalanceByUserId(Integer id);

    Integer sumMonthBalanceByUserId(Integer id);

    /*
    * 图片信息查询
    * */
    List<Image> FindCarList(Integer id);
    List<Image> FindHomeList(Integer id);
    List<Image> FindIdCardList(Integer id);
    List<Image> FindOtherList(Integer id);
}
